<?php  ?>
<ul class="tabs">
    <li class="shots <?php if (!$this->view->type) echo 'active'?>">
        <a href="<?php echo $this->baseUrl.$this->view->user->username ?>"> <span class="meta">Shots</span></a>
    </li>
    <li class="likes <?php if ($this->view->type) echo 'active'?>">
        <a href="<?php echo $this->baseUrl.$this->view->user->username ?>/shots/likes"><span class="meta">Likes</span></a>
    </li>
</ul>
<ol class="dribbbles group">
    <?php include 'SinglePhoto.php' ?>
</ol>
<div class="page">
    <div class="pagination">
        <a style="<?php if ($this->view->page - 1 == 0) echo "display: none;";
    else echo "display: initial;"; ?>" class="previous_page" rel="prev start" href="<?php if (isset($this->view->date))
               echo "?date=" . $this->view->date . "&&page=" . ($this->view->page - 1);
           else
               echo "?page=" . ($this->view->page - 1);
    ?>">← Newer</a>
        <a style="<?php
        if ($this->view->date) {
            $page = Status::getUserPhotoCount($this->view->length, $this->view->user, $this->view->date, $this->view->type);
        } else {
            $page = Status::getUserPhotoCount($this->view->length, $this->view->user, null, $this->view->type);
        }
        if ($this->view->page >= $page)
            echo "display: none;";
        else
            echo "display: initial;";
        ?>" class="next_page" rel="next" href="<?php
           if ($this->view->date)
               echo "?date=" . $this->view->date . "&&page=" . ($this->view->page + 1);
           else
               echo "?page=" . ($this->view->page + 1);
        ?>">Older →</a>
    </div>
</div>
<script>
    $('.full-pitch').hide();
</script>